import java.util.Scanner;

// 翻转字符串
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String sb = scanner.next();
        char[] array = sb.toCharArray();
        int start = 0;
        int end = array.length - 1;
        while(start < end) {
            char ch = array[start];
            array[start] = array[end];
            array[end] = ch;

            start++;
            end--;
        }
        System.out.println(new String(array));
    }
}
